<include file="public/header"/>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInUp">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>公司列表</h5>
                    <div class="ibox-tools">
                        <!--<a href="#" class="btn btn-primary btn-xs active">角色管理</a>-->
                        <a href="{:url('company/roleAdd')}" class="btn btn-primary btn-xs">添加公司</a>
                    </div>
                </div>
                <div class="ibox-content">
                    <table class="table table-hover">
                    <thead>
                    <tr>
                        <th width="40">
                            ID
                        </th>
                        <th align="left">
                            公司名称
                        </th>
                        <th align="left">
                            公司描述
                        </th>
                        <th>
                            {:lang('ACTIONS')}
                        </th>
                    </tr>
                    </thead>
                    <tbody>
                    <foreach name="roles" item="vo">
                        <tr>
                            <td>
                                {$vo.id}
                            </td>
                            <td>
                                {$vo.name}
                            </td>
                            <td>
                                {$vo.remark}
                            </td>
                            <td>
                                <a href="{:url('Company/bm_add',array('id'=>$vo['id']))}">添加部门</a>
                                <a href="{:url('Company/bm_list',array('id'=>$vo['id']))}">查看部门</a>
                                <a href="{:url('Company/roleedit',array('id'=>$vo['id']))}">{:lang('EDIT')}</a>
                                <a class="js-ajax-delete" href="{:url('Company/roledelete',array('id'=>$vo['id']))}">{:lang('DELETE')}</a>
                            </td>
                        </tr>
                    </foreach>
                    </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>